package demo;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author 24岁没牵过女人的手
 * 日期：2023/9/13 10:29
 * 文件描述：
 */
public class Main {
    public static void main(String[] args) {
        List<Integer> sonList = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            sonList.add(i % 5);
        }
        List<List> fatherList = new ArrayList<>();
        Stream<Integer> sorted = sonList.stream().sorted();
        List<Integer> sortedList = sorted.collect(Collectors.toList());
        fatherList.add(sortedList);
        System.out.println(sortedList);
    }
}
